package com.mz.mattress.admin.service.impl;

import com.mz.mattress.admin.mapper.HomeMapper;
import com.mz.mattress.admin.service.HomeService;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Home;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HomeServiceImpl implements HomeService {

    @Autowired
    private HomeMapper homeMapper;

    @Override
    public Result<Home> info() {
        Home home = homeMapper.selectById(1);
        return Result.ok(home);
    }

}
